home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / attclk2.arc / SETDATE.H < prev    next >
C/C++ Source or Header  |  1986-01-09  |  678b  |  25 lines

  1. /* :ts=8
  2.  *
  3.  * Global defines for setdate program
  4.  *
  5.  */
  6.  
  7.     /* structure for storing date and time */
  8. struct tm {
  9.     int    tm_sec;        /* seconds */
  10.     int    tm_min;        /* minutes */
  11.     int    tm_hour;    /* hours */
  12.     int    tm_mday;    /* day of month */
  13.     int    tm_mon;        /* month (0 = Jan, ...) */
  14.     int    tm_year;    /* years since 1900 */
  15.     int    tm_wday;    /* day of week (0 = Sun, ...) */
  16.     int    tm_yday;    /* day of year */
  17.     int    tm_isdst;    /* not used */
  18.     int    tm_hsec;    /* hundreths of seconds */
  19. };
  20.  
  21.     /* The real time clock stores the year as an offset (0-7) */
  22.     /* from a leap year.  I used 1984 for the leap year.  This */
  23.     /* will have to be changed before 12-31-91. */
  24. #define LEAP_YEAR 84
  25.